﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall.Graphics;
using FlatRedBall.Input;
using FlatRedBall;



namespace TopDownShooter.Screens
{
    public class HelpScreen : Screen
    {
        public HelpScreen()
            : base("HelpScreen")
        { }
        string HelpTextString =
@"Use WASD to move.
Point and click to fire.
Green boxes contain health.
Blue boxes contain ammo for your current weapon.
Kill enemies to progress.

Press spacebar to go back.";

        public override void Initialize()
        {
            // Set the screen up here instead of in the Constructor to avoid
            // exceptions occurring during the constructor.


            base.Initialize();
            Text HelpText = TextManager.AddText(HelpTextString);
            mTexts.Add(HelpText);
            //HelpText.Scale = HelpText.Spacing = 3;
            //HelpText.DisplayText = HelpTextString;

            HelpText.X = -20;

            SpriteManager.Cameras.Clear();
            SpriteManager.Cameras.Add(new Camera(FlatRedBallServices.GlobalContentManager));
            SpriteManager.Camera.X = 0;
            SpriteManager.Camera.Y = 0;
            
        }

        public override void Activity(bool firstTimeCalled)
        {
            if (InputManager.Keyboard.KeyPushed(Microsoft.Xna.Framework.Input.Keys.Space))
            {
                Game1.kills = 0;
                MoveToScreen(typeof(TitleScreen).FullName);
            }
            base.Activity(firstTimeCalled);
        }

        public override void Destroy()
        {
            base.Destroy();
        }
    }
}
